package nina.yiyou.salary.input.util

import static java.util.stream.Collectors.toMap

/**
 * 生成身份证号索引
 */
class IdMapMaker {

  IdMapMaker(Map basicMap) {
    _basicMap = basicMap
  }

  Map<String, String> make() {
    return _basicMap.values().stream()
        .collect(toMap({ it['身份证号码'] }, { it['工号'] }))
  }

  private final Map<String, Map> _basicMap
}
